<!-- 入驻列表 -->
<style>
	th {
		text-align: center;
	}
	
	.table>tbody>tr>td {
		line-height: 60px;
		text-align: center;
		height: 50px;
		margin: 0px;
	}
</style>
<!-- 省市三级连动 -->
<script src="__PUBLIC__/ganged/Js/jquery.js"></script>
<script src="__PUBLIC__/ganged/Js/city-picker.data.js"></script>
<script src="__PUBLIC__/ganged/Js/city-picker.js"></script>
<script src="__PUBLIC__/ganged/Js/main.js"></script>
<!-- css -->
<link href="__PUBLIC__/ganged/Css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/ganged/Css/city-picker.css" rel="stylesheet" type="text/css" />

<div id="data_page" class="in_page">
		<div class="panel panel-default">
			<div class="panel-body">
				<form class="form-inline" method="get" id="keyword">
					<div class="form-group" style="float:left;margin-left:2%">
						<input type="text" class="form-control" id="exampleInputName2" name="keyword" value="{:I('keyword')}" placeholder="品牌、姓名、电话">
					</div>
	
					<button type="submit" class="btn btn-sm btn-primary" style="margin-left:2%">搜索</button>
					<div class="btn-group" role="group" aria-label="..." style="float:right;margin-right:20px">
					</div>
				</form>
			</div>
		</div>
		
	<table class="table table-striped table-bordered table-condensed ">
		<thead>
			<tr>
				<!-- <th>置顶</th> -->
				<th>品牌标识</th>
				<th>品牌名称</th>
				<th>姓名</th>
				<th>联系电话</th>
				<th>详细地址</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="li">
				<tr>
					<td><img src="{$li.logo}"  width="50px" height="50px"/></td>
					<td>{$li.brand_name}</td>
					<td>{$li.name}</td>
					<td>{$li.mobile}</td>
					<td>{$li.address}</td>
					<td>{$li.status}</td>
					<td>
						<a href="{:U('apply_edit',array('id'=>$li['id']))}">
							<button type="button" class="btn btn-sm btn-success" >修改</button>
						</a>
						<button type="button" class="btn btn-sm btn-danger del" d_id="{$li.id}">删除</button>
					</td>
				</tr>
			</volist>
		</tbody>
	</table>
</div>
<div>{$page}</div>


<div id="Stick" style="display:none">
  <div class="container-fluid">
  <div class="row-fluid">
    <div class="span12">        
           <div class="form-group" style="margin-top:10%">
            	<label for="inputEmail3" class="col-sm-2 control-label">置顶</label> 
            <div class="col-sm-10" id="Shuffling" style="margin-bottom:5%">
              	<select name="sort" id="order">
              		<option value="3">顶级</option>
              		<option value="2">二级</option>
              		<option value="1">三级</option>
              	</select>
            </div>
            <button type="button" class="btn btn-sm btn-success" style="margin-left:19%" id="check">确定</button>
            <button type="button" class="btn btn-sm btn-danger out" >退出</button>
            <!-- <div style="margin-top:10%;"><font color="red">注意: 3最顶级,2第二级,1第三级</font></div> -->
           </div>
      </div>
    </div>
  </div>
</div>

<style>
	#img{
	  width:700px;
	  height:550px;
	  position: absolute;
	  top:5%;
	  left:20%;
	  background-color: #FFFFFF;
	  border-radius: 10px;
	  box-shadow:10px 10px 10px 5px #888888;
	}
	
	#order{
		width:100px;
		height:20px;
		display: block;
	}
	
	#Stick{
	  width:500px;
	  height:300px;
	  position: absolute;
	  top:5%;
	  left:20%;
	  background-color: #FFFFFF;
	  border-radius: 10px;
	  box-shadow:10px 10px 10px 5px #888888;	
	}
	
	#tuichu{
		position: absolute;
		right:0px;
		bottom:0px;
	}
</style>
<script>
	$(function(){
		//删除店铺
		$(".del").click(function(obj){
			$_this = $(this);
			var id = $(this).attr("d_id");
			if(confirm("您确认删除吗?")){
				$.post("{:U('del')}", {'id':id},function(obj){
                    alert(obj.m);
					if(obj.s){
						$_this.parent().parent().remove();
                        // if(typeof(obj.url) != undefined && obj.url){
                        //     location.href = obj.url;
                        // }
					}
				})
			}
			return false;
		})                                    
	})
</script>
